/*
 * @Author: your name
 * @Date: 2021-12-31 05:47:21
 * @LastEditTime: 2021-12-31 06:08:38
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vueProMobileTemplate\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/home',
    name: 'Home',
    component: Home,
    meta: {
      title: '首页',
      isMenu: true
    }
  },
  {
    path: '/me',
    name: 'Me',
    component: () =>
      import ('../views/me.vue'),
    meta: {
      title: '我的',
      isMenu: true
    }
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router